package top.codedance.iotp.serialPortSDK.exception;

/**
 * 业务逻辑不对抛出的异常，如 字符串长度不对
 */
public class BizException extends RuntimeException {

    private String code;

    public String getCode() {
        return code;
    }

    public BizException(String message) {
        super(message);
    }

    public BizException(String code, String message) {
        super(message);
        this.code = code;
    }

    public BizException(String code, String message, Throwable cause) {
        super(message, cause);
        this.code = code;
    }

    public BizException(String message, Throwable cause) {
        super(message, cause);
    }

    public BizException(Throwable cause) {
        super(cause);
    }


}
